package com.cool.springcloud.dao;

import com.cool.springcloud.entity.PaymentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 付款刀
 *
 * @Author ifredomvip@gmail.com
 * @Date 2022/8/18 14:05
 * @Version 1.0.0
 * @Description
 **/
@Mapper
public interface PaymentDao {
    /**
     * 插入支付
     *
     * @param payment 付款
     * @return int
     */
    int insertPayment(PaymentEntity payment);

    /**
     * 通过id获取付款
     *
     * @param id id
     * @return {@link PaymentEntity}
     */
    PaymentEntity getPaymentById(@Param("id") Long id);
}
